#!/bin/bash
# 大牌哥 的像素艺术
cat << "EOF"
  _____ _   _ _______ ____       _     ___ _
 |  ___| \ | | ____| __ )     / \   |_ _| |
 | |_  |  \| |  _| |  _ \    / _ \   | || |
 |  _| | |\  | |___| |_) |  / ___ \  | || |___
 |_|   |_| \_|_____|____/  /_/ \_\_|___\_____|

         _          _ _
        (_)        (_) |
  _ __   _  ___  ___ _| |_ ___
 | '_ \ | |/ _ \/ __| | __/ _ \
 | |_) || |  __/\__ \ | ||  __/
 | .__/ |_|\___||___/_|\__\___|
 | |
 |_|
EOF

echo "大牌哥欢迎您！"

dir="/root/k8s"


if [ echo "$?" -ne "0" ]
then 
	echo "必要软件安装失败"
	exit 1
else
	echo "安装成功可以选择选项"
fi

echo "输入1部署k8s-work"
echo "输入2部署k8s-master"
echo "输入3部署k8s-cluster即先2在别的机器上按1"
echo "输入0退出"

while true 
do
	read -p "请输入选择" a	
	case "$a" in
	1)
		bash $dir/work.sh
	;;
	2)
		bash $dir/master.sh
	;;
	3)
		bash $dir/master.sh
	;;
	0)
		echo "已退出"
		exit 0
	;;
	*)
		echo "请输入正确数字"
	;;
	esac	
	
done

